#if !defined(AFX_USERCHAT_H__F81A3FC3_0E2D_44F5_9DC5_2AF888C2AEB1__INCLUDED_)
#define AFX_USERCHAT_H__F81A3FC3_0E2D_44F5_9DC5_2AF888C2AEB1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// UserChat.h : header file
//

#include "Information.h"

/////////////////////////////////////////////////////////////////////////////
// CUserChat dialog

class CUserChat : public CDialog
{
// Construction
public:
	CString m_strInput;
	TLogin_Ans_FriendUnit y ;
	CUserChat(CWnd* pParent = NULL);   // standard constructor
	
// Dialog Data
	//{{AFX_DATA(CUserChat)
	enum { IDD = IDD_DIALOG_CHAT };
	CEdit	m_OutPut;
	CEdit	m_Edit_input;
	//}}AFX_DATA
	bool	isFriend;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUserChat)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	void	AppendTextToEdit ( CString s );
// Implementation
protected:
	CString Text;
	TLogin_Ans_FriendUnit	m_FriendInfor ;

	// Generated message map functions
	//{{AFX_MSG(CUserChat)
	afx_msg void OnOkSend();
	afx_msg void OnCancelClose();
	virtual BOOL OnInitDialog();
		afx_msg LRESULT OnMessage(WPARAM wParam, LPARAM lParam);	
		afx_msg LRESULT OnFriendStateChange(WPARAM wParam, LPARAM lParam);	
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnClose();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_USERCHAT_H__F81A3FC3_0E2D_44F5_9DC5_2AF888C2AEB1__INCLUDED_)
